#ifndef FRAMECHOOSE_H
#define FRAMECHOOSE_H

#include <QFrame>
#include "listchoose.h"

namespace Ui {
    class FrameChoose;
}

class FrameChoose : public QFrame
{
    Q_OBJECT

public:
    explicit FrameChoose(QWidget *parent = 0);
    ~FrameChoose();
    QUuid currentID()
    { return mcurrentID; }
    void setID(const QUuid theID);
    void setTable(const QString theTableName);
    void setReadOnly(const bool &b);
public slots:
    void clear();
    void select();
    void getDataFromList();
private:
    QString mtable;
    QUuid mcurrentID;
    ListChoose *lc;
    Ui::FrameChoose *ui;
    QMap<QUuid, QString> eventidname;
};

#endif // FRAMECHOOSE_H
